package cn.com.pingtech.master.controller;

import cn.com.pingtech.master.domain.MasterModel;
import cn.com.pingtech.master.service.MasterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zhusy
 * @description MasterController
 * @date 2021/1/7 17:10
 */
@RestController
@RequestMapping("/master")
public class MasterController {
    @Autowired
    MasterService masterService;

    @GetMapping("/list")
    public List<MasterModel> list(){
        List<MasterModel> list = masterService.list();
        System.out.println(list);
        return list;
    }
}
